import Vue from 'vue';
import ElementUI from 'element-ui';
import 'normalize.css/normalize.css'
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import SvgIcon from 'vue-svgicon'
import projectConfig from './config'

// Default tag name is 'svgicon'
Vue.use(SvgIcon, {
  tagName: 'svgicon'
})

Vue.use(ElementUI);

// 全局样式
import '@/assets/css/global.scss'

// 路由
import router from './router'

// vuex
import store from '../../store'

// 设置配置信息
import WConfig from '@/config/index'
WConfig.setOption({
  router,
  projectConfig
})

import './permission.ts'; // 权限管理

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
